ccc

x = [70,104,140,165,183];%64 32 16 8 4
y = [0.654,0.665,0.658,0.652,0.627];%64 32 16 8 4
plot(x,y,'MarkerFaceColor',[0 128 224]/255,...
    'MarkerEdgeColor',[0 0 0],...
    'MarkerSize',10,...
    'Marker','o',...
    'LineWidth',2,...
    'Color',[186 212 244]/255); hold on

c = [64 32 16 8 4];
offset1 = [3 0 0 2 -19];
offset2 = [-0.005 0 0.025 0.012 -0.018];
for i = 1:numel(c)
    if i == 2 continue;end
    text(x(i)+offset1(i),y(i)+offset2(i),['SPCNet-C-' num2str(c(i)) '-S-125'], 'FontName','Times New Roman');
end

x = [58.99,104,160,180];%169 125 63 33
y = [0.669,0.665,0.635,0.588];%169 125 63 33
plot(x,y,'MarkerFaceColor',[255,224,48]/255,...
    'MarkerEdgeColor',[0 0 0],...
    'MarkerSize',10,...
    'Marker','o',...
    'LineWidth',2,...
    'Color',[191,128,64]/255)  
hold on;
c = [169 125 63 33];
offset1 = [-3 -3 -35 -35];
offset2 = [0.02 0.02 -0.015 -0.015];
for i = 1:numel(c)
    text(x(i)+offset1(i),y(i)+offset2(i),['SPCNet-C-32-S-' num2str(c(i))],'FontName','Times New Roman');
end


results = [struct('tracker','GOTURN','auc',0.45,'speed',165),...
    struct('tracker','KCF','auc',0.516,'speed',165),...
    struct('tracker','fDSST','auc',0.561,'speed',57),...
    struct('tracker','Re3','auc',0.422,'speed',149),...
    struct('tracker','Staple','auc',0.6,'speed',80),...
    struct('tracker','CFNet','auc',0.611,'speed',75),...
    struct('tracker','SiamFC','auc',0.608,'speed',86),...
    struct('tracker','LMCF','auc',0.624,'speed',85),...
    struct('tracker','LCT','auc',0.628,'speed',27),...
    struct('tracker','EAST','auc',0.638,'speed',159),...
    struct('tracker','DSiamM','auc',0.656,'speed',25),...
    struct('tracker','PTAV','auc',0.663,'speed',25),...
    ];

for i = 1:numel(results)
    plot(results(i).speed,results(i).auc,'MarkerFaceColor',[193 221 198]/255,...
        'MarkerEdgeColor',[0 0 0],'MarkerSize',10,'Marker','o',...
        'LineWidth',2,'Color',[193 221 198]/255); hold on;
    text(results(i).speed+3,results(i).auc,results(i).tracker, 'FontName','Times New Roman');
end

grid on
ylim([0.4,0.7]);
set(gca,'linewidth',1,'GridLineStyle',':','XTick',[50 75 100 125 150 175 200])
xlim([25,200]);
xlabel('Tracking Speed (FPS)', 'FontName','Times New Roman');
ylabel('Success rate (AUC)', 'FontName','Times New Roman');
title('Success rate (OPE) v.s. Speed on OTB-2013', 'FontName','Times New Roman','FontSize',12)
legend({ 'SPCNet Feature Channel variants', 'SPCNet Resolution variants', 'other real-time trackers'},...
    'Location','southwest','Interpreter','latex','FontSize',12)
set(gcf, 'position', [500 300 600 250]);
saveas(gcf,'../img/speed_vs_auc_otb2013','pdf');
saveas(gcf,'../img/speed_vs_auc_otb2013','png');
